package com.example.demo3.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 
 * @TableName user
 */
@TableName(value ="user")
@Data
@ApiModel("用户")
public class User extends PageObj implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("用户ID")
    private Long userId;

    /**
     * 
     */
    @ApiModelProperty("用户名")
    private String userName;

    /**
     * 
     */
    private String userAccount;

    /**
     * 
     */
    @ApiModelProperty("密码")
    private String userPassword;

    /**
     * 
     */
    @ApiModelProperty("手机号")
    private String userPhone;

    /**
     * 
     */
    @ApiModelProperty("邮箱")
    private String userEmail;

    /**
     * 
     */
    private String userImg;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 状态
     */
    @ApiModelProperty("状态")
    @TableField(fill = FieldFill.INSERT)
    private Integer userStatus;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}